public class Main {
    public static void main(String[] args) {
        PurchaseRequest desk = new PurchaseRequest(250000,100,"教学");
        Approver zhangSan = new Director("张三");
        Approver liSi = new VicePresident("李四");
        Approver wangWu = new President("王五");
        Approver congress = new Congress("全体");
        zhangSan.setSuccessor(liSi);
        liSi.setSuccessor(wangWu);
        wangWu.setSuccessor(congress);
        zhangSan.processRequest(desk);

        PurchaseRequest pencil = new PurchaseRequest(520000,120,"工作");
        zhangSan.processRequest(pencil);
        PurchaseRequest door = new PurchaseRequest(80000,120,"装修");
        zhangSan.processRequest(door);
        PurchaseRequest TV = new PurchaseRequest(30000,300,"娱乐");
        zhangSan.processRequest(TV);

    }
}